#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/*.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../ruoyi-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy ruoyi-admin "
cp ../ruoyi-admin/target/ruoyi-admin.jar ./ruoyi/jar

echo "begin copy ruoyi-common "
cp ../ruoyi-common/target/ruoyi-common-*.jar ./ruoyi/jar

echo "begin copy ruoyi-framework "
cp ../ruoyi-framework/target/ruoyi-framework-*.jar ./ruoyi/jar

echo "begin copy ruoyi-generator "
cp ../ruoyi-generator/target/ruoyi-generator-*.jar ./ruoyi/jar

echo "begin copy ruoyi-quartz "
cp ../ruoyi-quartz/target/ruoyi-quartz-*.jar ./ruoyi/jar

echo "begin copy ruoyi-system "
cp ../ruoyi-system/target/ruoyi-system-*.jar ./ruoyi/jar
